Skip to main content

Policy Method Parameters

These correspond to the methodParams field in policies

Privacy (PII)

  • entity_types - List of entity types to target as PII.

    CategoryEntity Type
    Bank AccountIBAN_CODE
    Crypto-account NumberCRYPTO
    Date and TimeDATE, TIME
    Email AddressEMAIL_ADDRESS
    EventEVENT
    IP AddressIP_ADDRESS
    LanguageLANGUAGE
    LocationLOC, GPE, FAC
    MoneyMONEY
    Nationalities or Religious or Political GroupsNORP
    NumberCARDINAL, ORDINAL, QUANTITY, PERCENT
    OrganizationORG
    PassportUS_PASSPORT, IT_PASSPORT, PASSPORT
    PersonPERSON
    Phone NumberPHONE_NUMBER
    ProductPRODUCT
    SSN NumberUS_SSN
  • regex_types - Object mapping the category to a regular expression

    • e.g. { "Email": "^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$" }
  • deny_list - Object mapping the category to a list of words to block

    • e.g. { "CEOs": ["Elon Musk", "Sam Altman"] }

Toxicity

N/A

Hallucination

N/A

RAG Hallucination

N/A

Content (Alignment)

This should be done via our Guardrail Development Platform

  • adapter_path - Path to a model created using our Guardrail Development Platform